﻿<%@ Control Language="C#" ClassName="VeFields" %>

<asp:FormView ID="FormView1" runat="server">
	<ItemTemplate>
		<table border="0" cellpadding="3" cellspacing="1">
			<tr>
        <td class="literal"><asp:Label ID="lbldataTenVe" runat="server" Text="Tên Vé:" AssociatedControlID="dataTenVe" /></td>
        <td>
					<asp:TextBox runat="server" ID="dataTenVe" Text='<%# Bind("TenVe") %>'  TextMode="MultiLine"  Width="250px" Rows="5"></asp:TextBox><asp:RequiredFieldValidator ID="ReqVal_dataTenVe" runat="server" Display="Dynamic" ControlToValidate="dataTenVe" ErrorMessage="Required"></asp:RequiredFieldValidator>
				</td>
			</tr>
			<tr>
        <td class="literal"><asp:Label ID="lbldataMoTa" runat="server" Text="Mô Tả:" AssociatedControlID="dataMoTa" /></td>
        <td>
					<asp:TextBox runat="server" ID="dataMoTa" Text='<%# Bind("MoTa") %>'  TextMode="MultiLine"  Width="250px" Rows="5"></asp:TextBox>
				</td>
			</tr>
			<tr>
        <td class="literal"><asp:Label ID="lbldataTrangThai" runat="server" Text="Trạng Thái:" AssociatedControlID="dataTrangThai" /></td>
        <td>
					<asp:RadioButtonList runat="server" ID="dataTrangThai" SelectedValue='<%# Bind("TrangThai") %>' RepeatDirection="Horizontal"><asp:ListItem Value="True" Text="Yes" Selected="True"></asp:ListItem><asp:ListItem Value="False" Text="No"></asp:ListItem></asp:RadioButtonList>
				</td>
			</tr>
			<tr>
        <td class="literal"><asp:Label ID="lbldataLoaiVeId" runat="server" Text="Loại Vé ID:" AssociatedControlID="dataLoaiVeId" /></td>
        <td>
					<data:EntityDropDownList runat="server" ID="dataLoaiVeId" DataSourceID="LoaiVeIdLoaiveDataSource" DataTextField="TenVe" DataValueField="LoaiVeId" SelectedValue='<%# Bind("LoaiVeId") %>' AppendNullItem="true" Required="true" NullItemText="< Xin mời chọn ...>" ErrorText="Required" />
					<data:LoaiveDataSource ID="LoaiVeIdLoaiveDataSource" runat="server" SelectMethod="GetAll"  />
				</td>
			</tr>
			<tr>
        <td class="literal"><asp:Label ID="lbldataRapId" runat="server" Text="Rạp ID:" AssociatedControlID="dataRapId" /></td>
        <td>
					<data:EntityDropDownList runat="server" ID="dataRapId" DataSourceID="RapIdRapDataSource" DataTextField="TenRap" DataValueField="RapId" SelectedValue='<%# Bind("RapId") %>' AppendNullItem="true" Required="true" NullItemText="< Xin mời chọn ...>" ErrorText="Required" />
					<data:RapDataSource ID="RapIdRapDataSource" runat="server" SelectMethod="GetAll"  />
				</td>
			</tr>
			<tr>
        <td class="literal"><asp:Label ID="lbldataPhongId" runat="server" Text="Phòng ID:" AssociatedControlID="dataPhongId" /></td>
        <td>
					<data:EntityDropDownList runat="server" ID="dataPhongId" DataSourceID="PhongIdPhongDataSource" DataTextField="TenPhong" DataValueField="PhongId" SelectedValue='<%# Bind("PhongId") %>' AppendNullItem="true" Required="true" NullItemText="< Xin mời chọn ...>" ErrorText="Required" />
					<data:PhongDataSource ID="PhongIdPhongDataSource" runat="server" SelectMethod="GetAll"  />
				</td>
			</tr>
			<tr>
        <td class="literal"><asp:Label ID="lbldataPhimId" runat="server" Text="Phim ID:" AssociatedControlID="dataPhimId" /></td>
        <td>
					<data:EntityDropDownList runat="server" ID="dataPhimId" DataSourceID="PhimIdPhimDataSource" DataTextField="TenPhim" DataValueField="PhimId" SelectedValue='<%# Bind("PhimId") %>' AppendNullItem="true" Required="true" NullItemText="< Xin mời chọn ...>" ErrorText="Required" />
					<data:PhimDataSource ID="PhimIdPhimDataSource" runat="server" SelectMethod="GetAll"  />
				</td>
			</tr>
			<tr>
        <td class="literal"><asp:Label ID="lbldataGheId" runat="server" Text="Ghế ID:" AssociatedControlID="dataGheId" /></td>
        <td>
					<data:EntityDropDownList runat="server" ID="dataGheId" DataSourceID="GheIdGheDataSource" DataTextField="TenGhe" DataValueField="GheId" SelectedValue='<%# Bind("GheId") %>' AppendNullItem="true" Required="true" NullItemText="< Xin mời chọn ...>" ErrorText="Required" />
					<data:GheDataSource ID="GheIdGheDataSource" runat="server" SelectMethod="GetAll"  />
				</td>
			</tr>
			<tr>
        <td class="literal"><asp:Label ID="lbldataGia" runat="server" Text="Giá Vé:" AssociatedControlID="dataGia" /></td>
        <td>
					<asp:TextBox runat="server" ID="dataGia" Text='<%# Bind("Gia") %>'></asp:TextBox><asp:RequiredFieldValidator ID="ReqVal_dataGia" runat="server" Display="Dynamic" ControlToValidate="dataGia" ErrorMessage="Required"></asp:RequiredFieldValidator><asp:RangeValidator ID="RangeVal_dataGia" runat="server" Display="Dynamic" ControlToValidate="dataGia" ErrorMessage="Invalid value" MaximumValue="999999999" MinimumValue="-999999999" Type="Double"></asp:RangeValidator>
				</td>
			</tr>
			
		</table>

	</ItemTemplate>
</asp:FormView>


